<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>高校人事管理系统</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/lib/bootstrap/css/bootstrap.css">
    
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/stylesheets/theme.css">
    <link rel="stylesheet" href="__PUBLIC__/admin/lib/font-awesome/css/font-awesome.css">

    <script src="__PUBLIC__/admin/lib/jquery-1.7.2.min.js" type="text/javascript"></script>

    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    
  </head>

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!--> 
  <body class=""> 
  <!--<![endif]-->

    <include file="./Application/Admin/View/index/header.html" />
    <include file="./Application/Admin/View/index/nav.html" />
    

    
    <div class="content">
        
        <div class="header">
            
            <h1 class="page-title">人员信息</h1>
        </div>
        
                <ul class="breadcrumb">
            <li><a href="{:U('admin/index/index')}">主页</a> <span class="divider">/</span></li>
            <li class="active">人员信息</li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
                    
<div class="btn-toolbar">
    <a href="{:U('admin/personnel/ryadd')}" class="btn btn-primary"><i class="icon-plus"></i> 添加人员</a>
    <!-- 模态框 -->
    <button type="button" class="btn btn-primary btn-lg" style="float: right;" data-toggle="modal" data-target="#myModal">
      搜索
    </button>
    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <form style="margin: 0px;padding: 0px;" action="{:U('admin/personnel/ryList')}" method="get">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">搜索</h4>
          </div>
          <div class="modal-body" style="max-height:500px;">
            <table class="">
              <tr>
                <td><label style="margin-left: 160px;">姓名: <input type="text" name="ry_name" style="width: 200px;" class="input-xlarge"></label></td>
              </tr>
              <tr>
                <td><label style="margin-left: 160px;">性别: 
                  <select class="input-xlarge" name="ry_sex" style="width: 215px;">
                    <option value="">请选择</option>
                    <option value="男">男</option>
                    <option value="女">女</option>
                  </select></label>
                </td>
              </tr>
              <tr>
                <td><label style="margin-left: 160px;">民族: 
                  <input type="text" name="ry_minzu" class="input-xlarge" style="width: 200px;"></label>
                </td>
              </tr>
              <tr>
                <td><label style="margin-left: 160px;">籍贯: 
                  <input type="text" name="ry_join" class="input-xlarge" style="width: 200px;"></label>
                </td>
              </tr>
              <tr>
                <td>
                  <label style="margin-left: 130px;">政治面貌: 
                  <input type="text" name="ry_zhengzhi" class="input-xlarge" style="width: 200px;"></label>
                </td>
              </tr>
              <tr>
                <td><label style="margin-left: 130px;">毕业院校: <input type="text" name="ry_biye" class="input-xlarge" style="width: 200px;"></label></td>
              </tr>
              <tr>
                <td><label style="margin-left: 160px;">学历: 
                  <select class="input-xlarge" name="ry_xueli" style="width: 215px;">
                    <option value="">请选择</option>
                    <option value="本科">本科</option>
                    <option value="硕士">硕士</option>
                    <option value="博士">博士</option>
                  </select></label>
                </td>
              </tr>
              <tr>
                <td><label style="margin-left: 160px;">职务: 
                  <select class="input-xlarge" name="ry_zhiwu" style="width: 215px;">
                    <option value="">请选择</option>
                    <foreach name="zwinfo" item="zw">
                    <option value="{$zw.zw_name}">{$zw.zw_name}</option>
                    </foreach>
                  </select></label>
                </td>
              </tr>
              <tr>
                <td><label style="margin-left: 160px;">职称: 
                  <select class="input-xlarge" name="ry_zhicheng" style="width: 215px;">
                    <option value="">请选择</option>
                    <foreach name="zcinfo" item="zc">
                    <option value="{$zc.zc_name}">{$zc.zc_name}</option>
                    </foreach>
                  </select></label>
                </td>
              </tr>
              <tr>
                <td><label style="margin-left: 130px;">是否在职: 
                  <select class="input-xlarge" name="ry_zaizhi" style="width: 215px;">
                    <option value="">请选择</option>
                    <option value="在职">在职</option>
                    <option value="退休">退休</option>
                  </select></label>
                </td>
              </tr>
            </table>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <input type="submit" value="搜索" class="btn btn-primary">
          </div>
        </div>
        </form>
      </div>
    </div>
</div>
<div class="well">
    <table class="table table-hover">
      <thead>
        <tr>
          <th>#</th>
          <th>姓名</th>
          <th>性别</th>
          <th>学历</th>
          <th>职称</th>
          <th>职务</th>
          <th style="width: 10%;">操作</th>
        </tr>
      </thead>
      <tbody>
        <foreach name="ryinfo" item="r">
        <tr>
        
          <td>{$r.id}</td>
          <td><a href="{:U('admin/personnel/ryview',array('id'=>$r['id']))}">{$r.ry_name}</a></td>
          <td>{$r.ry_sex}</td>
          <td>{$r.ry_xueli}</td>
          <td>{$r.ry_zhicheng}</td>
          <td>{$r.ry_zhiwu}</td>
          <td>
              <a href="{:U('admin/personnel/ryedit',array('id'=>$r['id']))}"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
              <a href="{:U('admin/personnel/rydel',array('id'=>$r['id']))}" title="删除" onclick="return firm();"><i class="icon-remove"></i></a>
          </td>
        
        </tr>
        </foreach>
      </tbody>
    </table>
    <script type="text/javascript">
      function firm(){
        if (confirm('真的要删除吗?')) {
          return true;
        }else{
          return false;
        }
      }
    </script>
</div>
<style type="text/css">
  .b-page {
    background: #fff;
    box-shadow: 0px 1px 2px 0px #E2E2E2;
  }
  .page {
    padding: 30px 15px;
    background: #FFF;
    text-align: center;
    overflow: hidden;
  }
  .page .first,
  .page .prev,
  .page .current,
  .page .num,
  .page .current,
  .page .next,
  .page .end {
    padding: 8px 16px;
    margin: 0px 5px;
    display: inline-block;
    color: #008CBA;
    border: 1px solid #F2F2F2;
    border-radius: 5px;
  }
  .page .first:hover,
  .page .prev:hover,
  .page .current:hover,
  .page .num:hover,
  .page .current:hover,
  .page .next:hover,
  .page .end:hover {
    text-decoration: none;
    background: #F8F5F5;
  }
  .page .current {
    background-color: #008CBA;
    color: #FFF;
    border-radius: 5px;
    border: 1px solid #008CBA;
  }
  .page .current:hover {
    text-decoration: none;
    background: #008CBA;
  }
  .page .not-allowed {
    cursor: not-allowed;
  }
</style>

<div class="pagination" id="page">
    {$page}
</div>

                    <footer>
                        <hr>

                        <p>&copy; 2017 高校人事管理系统</p>
                    </footer>
                    
            </div>
        </div>
    </div>
    


    <script src="__PUBLIC__/admin/lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
    </script>
    
  </body>
</html>
